@mastra/ai-sdk 0.0.0-remove-unused-model-providers-api-20251030210744 → 0.0.0-safe-stringify-telemetry-20251205024938
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 +320 -8
- package/dist/__tests__/__fixtures__/network.stream.d.ts +2329 -0
- package/dist/__tests__/__fixtures__/network.stream.d.ts.map +1 -0
- package/dist/chat-route.d.ts +52 -2
- package/dist/chat-route.d.ts.map +1 -1
- package/dist/helpers.d.ts +2 -3
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.cjs +402 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +402 -64
- package/dist/index.js.map +1 -1
- package/dist/network-route.d.ts.map +1 -1
- package/dist/to-ai-sdk-format.d.ts +67 -1
- package/dist/to-ai-sdk-format.d.ts.map +1 -1
- package/dist/transformers.d.ts +147 -10
- package/dist/transformers.d.ts.map +1 -1
- package/dist/utils.d.ts +9 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/workflow-route.d.ts +3 -1
- package/dist/workflow-route.d.ts.map +1 -1
- package/package.json +12 -5
package/dist/transformers.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { LLMStepResult } from '@mastra/core/agent';
|
|
2
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
|
+
import type { InferUIMessageChunk, UIMessage, UIMessageStreamOptions } from 'ai';
|
|
5
5
|
import type { ZodType } from 'zod';
|
|
6
|
+
import type { ToolAgentChunkType, ToolWorkflowChunkType, ToolNetworkChunkType } from './helpers.js';
|
|
6
7
|
type LanguageModelV2Usage = {
|
|
7
8
|
/**
|
|
8
9
|
The number of input (prompt) tokens used.
|
|
@@ -32,6 +33,8 @@ type StepResult = {
|
|
|
32
33
|
status: WorkflowStepStatus;
|
|
33
34
|
input: Record<string, unknown> | null;
|
|
34
35
|
output: unknown | null;
|
|
36
|
+
suspendPayload: Record<string, unknown> | null;
|
|
37
|
+
resumePayload: Record<string, unknown> | null;
|
|
35
38
|
};
|
|
36
39
|
export type WorkflowDataPart = {
|
|
37
40
|
type: 'data-workflow' | 'data-tool-workflow';
|
|
@@ -65,15 +68,26 @@ export type AgentDataPart = {
|
|
|
65
68
|
id: string;
|
|
66
69
|
data: LLMStepResult;
|
|
67
70
|
};
|
|
68
|
-
|
|
71
|
+
declare const PRIMITIVE_CACHE_SYMBOL: unique symbol;
|
|
72
|
+
export declare function WorkflowStreamToAISDKTransformer({ includeTextStreamParts, }?: {
|
|
73
|
+
includeTextStreamParts?: boolean;
|
|
74
|
+
}): import("stream/web").TransformStream<ChunkType, ToolAgentChunkType | ToolWorkflowChunkType | ToolNetworkChunkType | WorkflowDataPart | ChunkType | {
|
|
69
75
|
data?: string;
|
|
70
76
|
type?: "start" | "finish";
|
|
71
|
-
}
|
|
72
|
-
export declare function AgentNetworkToAISDKTransformer(): import("stream/web").TransformStream<NetworkChunkType, DataChunkType | NetworkDataPart | {
|
|
77
|
+
} | InferUIMessageChunk<UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>>>;
|
|
78
|
+
export declare function AgentNetworkToAISDKTransformer(): import("stream/web").TransformStream<NetworkChunkType, DataChunkType | NetworkDataPart | InferUIMessageChunk<UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>> | {
|
|
73
79
|
data?: string;
|
|
74
80
|
type?: "start" | "finish";
|
|
75
|
-
}
|
|
76
|
-
export declare function AgentStreamToAISDKTransformer<TOutput extends ZodType<any>>(
|
|
81
|
+
}>;
|
|
82
|
+
export declare function AgentStreamToAISDKTransformer<TOutput extends ZodType<any>>({ lastMessageId, sendStart, sendFinish, sendReasoning, sendSources, messageMetadata, onError, }: {
|
|
83
|
+
lastMessageId?: string;
|
|
84
|
+
sendStart?: boolean;
|
|
85
|
+
sendFinish?: boolean;
|
|
86
|
+
sendReasoning?: boolean;
|
|
87
|
+
sendSources?: boolean;
|
|
88
|
+
messageMetadata?: UIMessageStreamOptions<UIMessage>['messageMetadata'];
|
|
89
|
+
onError?: UIMessageStreamOptions<UIMessage>['onError'];
|
|
90
|
+
}): import("stream/web").TransformStream<ChunkType<TOutput>, object>;
|
|
77
91
|
export declare function transformAgent<TOutput extends ZodType<any>>(payload: ChunkType<TOutput>, bufferedSteps: Map<string, any>): {
|
|
78
92
|
type: "data-tool-agent";
|
|
79
93
|
id: string;
|
|
@@ -82,12 +96,120 @@ export declare function transformAgent<TOutput extends ZodType<any>>(payload: Ch
|
|
|
82
96
|
export declare function transformWorkflow<TOutput extends ZodType<any>>(payload: ChunkType<TOutput>, bufferedWorkflows: Map<string, {
|
|
83
97
|
name: string;
|
|
84
98
|
steps: Record<string, StepResult>;
|
|
85
|
-
}>, isNested?: boolean): (DataChunkType & {
|
|
99
|
+
}>, isNested?: boolean, includeTextStreamParts?: boolean): (DataChunkType & {
|
|
86
100
|
from: never;
|
|
87
101
|
runId: never;
|
|
88
102
|
metadata?: Record<string, any> | undefined;
|
|
89
103
|
payload: never;
|
|
90
|
-
}) | {
|
|
104
|
+
}) | ToolAgentChunkType | ToolWorkflowChunkType | ToolNetworkChunkType | {
|
|
105
|
+
type: "text-start";
|
|
106
|
+
id: string;
|
|
107
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
108
|
+
} | {
|
|
109
|
+
type: "text-delta";
|
|
110
|
+
delta: string;
|
|
111
|
+
id: string;
|
|
112
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
113
|
+
} | {
|
|
114
|
+
type: "text-end";
|
|
115
|
+
id: string;
|
|
116
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
117
|
+
} | {
|
|
118
|
+
type: "reasoning-start";
|
|
119
|
+
id: string;
|
|
120
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
121
|
+
} | {
|
|
122
|
+
type: "reasoning-delta";
|
|
123
|
+
id: string;
|
|
124
|
+
delta: string;
|
|
125
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
126
|
+
} | {
|
|
127
|
+
type: "reasoning-end";
|
|
128
|
+
id: string;
|
|
129
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
130
|
+
} | {
|
|
131
|
+
type: "error";
|
|
132
|
+
errorText: string;
|
|
133
|
+
} | {
|
|
134
|
+
type: "tool-input-available";
|
|
135
|
+
toolCallId: string;
|
|
136
|
+
toolName: string;
|
|
137
|
+
input: unknown;
|
|
138
|
+
providerExecuted?: boolean;
|
|
139
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
140
|
+
dynamic?: boolean;
|
|
141
|
+
} | {
|
|
142
|
+
type: "tool-input-error";
|
|
143
|
+
toolCallId: string;
|
|
144
|
+
toolName: string;
|
|
145
|
+
input: unknown;
|
|
146
|
+
providerExecuted?: boolean;
|
|
147
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
148
|
+
dynamic?: boolean;
|
|
149
|
+
errorText: string;
|
|
150
|
+
} | {
|
|
151
|
+
type: "tool-output-available";
|
|
152
|
+
toolCallId: string;
|
|
153
|
+
output: unknown;
|
|
154
|
+
providerExecuted?: boolean;
|
|
155
|
+
dynamic?: boolean;
|
|
156
|
+
preliminary?: boolean;
|
|
157
|
+
} | {
|
|
158
|
+
type: "tool-output-error";
|
|
159
|
+
toolCallId: string;
|
|
160
|
+
errorText: string;
|
|
161
|
+
providerExecuted?: boolean;
|
|
162
|
+
dynamic?: boolean;
|
|
163
|
+
} | {
|
|
164
|
+
type: "tool-input-start";
|
|
165
|
+
toolCallId: string;
|
|
166
|
+
toolName: string;
|
|
167
|
+
providerExecuted?: boolean;
|
|
168
|
+
dynamic?: boolean;
|
|
169
|
+
} | {
|
|
170
|
+
type: "tool-input-delta";
|
|
171
|
+
toolCallId: string;
|
|
172
|
+
inputTextDelta: string;
|
|
173
|
+
} | {
|
|
174
|
+
type: "source-url";
|
|
175
|
+
sourceId: string;
|
|
176
|
+
url: string;
|
|
177
|
+
title?: string;
|
|
178
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
179
|
+
} | {
|
|
180
|
+
type: "source-document";
|
|
181
|
+
sourceId: string;
|
|
182
|
+
mediaType: string;
|
|
183
|
+
title: string;
|
|
184
|
+
filename?: string;
|
|
185
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
186
|
+
} | {
|
|
187
|
+
type: "file";
|
|
188
|
+
url: string;
|
|
189
|
+
mediaType: string;
|
|
190
|
+
providerMetadata?: import("ai").ProviderMetadata;
|
|
191
|
+
} | {
|
|
192
|
+
type: "start-step";
|
|
193
|
+
} | {
|
|
194
|
+
type: "finish-step";
|
|
195
|
+
} | {
|
|
196
|
+
type: "abort";
|
|
197
|
+
} | {
|
|
198
|
+
type: `data-${string}`;
|
|
199
|
+
id?: string;
|
|
200
|
+
data: unknown;
|
|
201
|
+
transient?: boolean;
|
|
202
|
+
} | {
|
|
203
|
+
type: "start";
|
|
204
|
+
messageId?: string;
|
|
205
|
+
messageMetadata?: unknown;
|
|
206
|
+
} | {
|
|
207
|
+
type: "finish";
|
|
208
|
+
messageMetadata?: unknown;
|
|
209
|
+
} | {
|
|
210
|
+
type: "message-metadata";
|
|
211
|
+
messageMetadata: unknown;
|
|
212
|
+
} | {
|
|
91
213
|
readonly type: "data-workflow" | "data-tool-workflow";
|
|
92
214
|
readonly id: string;
|
|
93
215
|
readonly data: {
|
|
@@ -96,6 +218,15 @@ export declare function transformWorkflow<TOutput extends ZodType<any>>(payload:
|
|
|
96
218
|
readonly steps: Record<string, StepResult>;
|
|
97
219
|
readonly output: null;
|
|
98
220
|
};
|
|
221
|
+
} | {
|
|
222
|
+
readonly type: "data-workflow" | "data-tool-workflow";
|
|
223
|
+
readonly id: string;
|
|
224
|
+
readonly data: {
|
|
225
|
+
readonly name: string;
|
|
226
|
+
readonly status: "suspended";
|
|
227
|
+
readonly steps: Record<string, StepResult>;
|
|
228
|
+
readonly output: null;
|
|
229
|
+
};
|
|
99
230
|
} | {
|
|
100
231
|
readonly type: "data-workflow" | "data-tool-workflow";
|
|
101
232
|
readonly id: string;
|
|
@@ -111,10 +242,16 @@ export declare function transformWorkflow<TOutput extends ZodType<any>>(payload:
|
|
|
111
242
|
};
|
|
112
243
|
readonly status: WorkflowRunStatus;
|
|
113
244
|
};
|
|
114
|
-
} | null;
|
|
245
|
+
} | null | undefined;
|
|
115
246
|
export declare function transformNetwork(payload: NetworkChunkType, bufferedNetworks: Map<string, {
|
|
116
247
|
name: string;
|
|
117
|
-
steps: StepResult
|
|
248
|
+
steps: (StepResult & {
|
|
249
|
+
id: string;
|
|
250
|
+
iteration: number;
|
|
251
|
+
task: null | Record<string, unknown>;
|
|
252
|
+
input: StepResult['input'];
|
|
253
|
+
[PRIMITIVE_CACHE_SYMBOL]: Map<string, any>;
|
|
254
|
+
})[];
|
|
118
255
|
usage: LanguageModelV2Usage | null;
|
|
119
256
|
output: unknown | null;
|
|
120
257
|
}>, isNested?: boolean): InferUIMessageChunk<UIMessage> | NetworkDataPart | DataChunkType | null;
|
|
@@ -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,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,
|
|
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,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,KAAK,EAAE,iB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AG,CAAC,CAAC;KAC5C,CAAC,EAAE,CAAC;IACL,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB,CACF,EACD,QAAQ,CAAC,EAAE,OAAO,GACjB,mBAAmB,CAAC,SAAS,CAAC,GAAG,eAAe,GAAG,aAAa,GAAG,IAAI,CA0VzE"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import type { DataChunkType } from '@mastra/core/stream';
|
|
1
|
+
import type { ChunkType, DataChunkType, NetworkChunkType, OutputSchema } from '@mastra/core/stream';
|
|
2
2
|
export declare const isDataChunkType: (chunk: any) => chunk is DataChunkType;
|
|
3
|
+
export declare const isMastraTextStreamChunk: (chunk: any) => chunk is ChunkType<OutputSchema>;
|
|
4
|
+
export declare function safeParseErrorObject(obj: unknown): string;
|
|
5
|
+
export declare const isAgentExecutionDataChunkType: (chunk: any) => chunk is Omit<NetworkChunkType, "payload"> & {
|
|
6
|
+
payload: DataChunkType;
|
|
7
|
+
};
|
|
8
|
+
export declare const isWorkflowExecutionDataChunkType: (chunk: any) => chunk is Omit<NetworkChunkType, "payload"> & {
|
|
9
|
+
payload: DataChunkType;
|
|
10
|
+
};
|
|
3
11
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEpG,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,aAErD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,SAAS,CAAC,YAAY,CA8BnF,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"}
|
package/dist/workflow-route.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { registerApiRoute } from '@mastra/core/server';
|
|
|
2
2
|
export type WorkflowRouteOptions = {
|
|
3
3
|
path: `${string}:workflowId${string}`;
|
|
4
4
|
workflow?: never;
|
|
5
|
+
includeTextStreamParts?: boolean;
|
|
5
6
|
} | {
|
|
6
7
|
path: string;
|
|
7
8
|
workflow: string;
|
|
9
|
+
includeTextStreamParts?: boolean;
|
|
8
10
|
};
|
|
9
|
-
export declare function workflowRoute({ path, workflow, }: WorkflowRouteOptions): ReturnType<typeof registerApiRoute>;
|
|
11
|
+
export declare function workflowRoute({ path, workflow, includeTextStreamParts, }: WorkflowRouteOptions): ReturnType<typeof registerApiRoute>;
|
|
10
12
|
//# sourceMappingURL=workflow-route.d.ts.map
|
|
@@ -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;AAcvD,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,GAAG,MAAM,cAAc,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAAE,GAC7F;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzE,wBAAgB,aAAa,CAAC,EAC5B,IAA0C,EAC1C,QAAQ,EACR,sBAA8B,GAC/B,EAAE,oBAAoB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAsG5D"}
|
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-safe-stringify-telemetry-20251205024938",
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"zod": "^3.25.0 || ^4.0.0",
|
|
26
|
-
"@mastra/core": "0.0.0-
|
|
26
|
+
"@mastra/core": "0.0.0-safe-stringify-telemetry-20251205024938"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/json-schema": "^7.0.15",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"typescript": "^5.8.3",
|
|
33
33
|
"vitest": "^3.2.4",
|
|
34
34
|
"zod": "^3.25.76",
|
|
35
|
-
"@internal/types-builder": "0.0.0-
|
|
36
|
-
"@mastra/core": "0.0.0-
|
|
37
|
-
"@internal/lint": "0.0.0-
|
|
35
|
+
"@internal/types-builder": "0.0.0-safe-stringify-telemetry-20251205024938",
|
|
36
|
+
"@mastra/core": "0.0.0-safe-stringify-telemetry-20251205024938",
|
|
37
|
+
"@internal/lint": "0.0.0-safe-stringify-telemetry-20251205024938"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"mastra",
|
|
@@ -54,6 +54,13 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"ai": "^5.0.60"
|
|
56
56
|
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"publish-branch": [
|
|
60
|
+
"main",
|
|
61
|
+
"0.x"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
57
64
|
"scripts": {
|
|
58
65
|
"lint": "eslint .",
|
|
59
66
|
"build": "tsup --config tsup.config.ts",
|