@mastra/deployer 0.1.0-alpha.33 → 0.1.0-alpha.34
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 +8 -0
- package/dist/server/index.js +17 -7
- package/package.json +2 -2
- package/src/server/handlers/agents.ts +17 -7
package/CHANGELOG.md
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -2907,13 +2907,23 @@ async function streamGenerateHandler(c2) {
|
|
|
2907
2907
|
if (part.type === "error") {
|
|
2908
2908
|
throw new Error(part.error);
|
|
2909
2909
|
} else {
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2910
|
+
if (output) {
|
|
2911
|
+
return new Response(streamResult.toTextStreamResponse(), {
|
|
2912
|
+
headers: {
|
|
2913
|
+
"Content-Type": "text/event-stream",
|
|
2914
|
+
"content-encoding": "identity",
|
|
2915
|
+
"transfer-encoding": "chunked"
|
|
2916
|
+
}
|
|
2917
|
+
});
|
|
2918
|
+
} else {
|
|
2919
|
+
return new Response(streamResult.toDataStream(), {
|
|
2920
|
+
headers: {
|
|
2921
|
+
"Content-Type": "text/event-stream",
|
|
2922
|
+
"content-encoding": "identity",
|
|
2923
|
+
"transfer-encoding": "chunked"
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
}
|
|
2917
2927
|
}
|
|
2918
2928
|
}
|
|
2919
2929
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.34",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
44
44
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
45
45
|
"zod": "^3.24.1",
|
|
46
|
-
"@mastra/core": "^0.2.0-alpha.
|
|
46
|
+
"@mastra/core": "^0.2.0-alpha.88"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@hono/node-server": "^1.13.7",
|
|
@@ -156,13 +156,23 @@ export async function streamGenerateHandler(c: Context): Promise<Response | unde
|
|
|
156
156
|
if (part.type === 'error') {
|
|
157
157
|
throw new Error(part.error);
|
|
158
158
|
} else {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
159
|
+
if (output) {
|
|
160
|
+
return new Response(streamResult.toTextStreamResponse(), {
|
|
161
|
+
headers: {
|
|
162
|
+
'Content-Type': 'text/event-stream',
|
|
163
|
+
'content-encoding': 'identity',
|
|
164
|
+
'transfer-encoding': 'chunked',
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
} else {
|
|
168
|
+
return new Response(streamResult.toDataStream(), {
|
|
169
|
+
headers: {
|
|
170
|
+
'Content-Type': 'text/event-stream',
|
|
171
|
+
'content-encoding': 'identity',
|
|
172
|
+
'transfer-encoding': 'chunked',
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
166
176
|
}
|
|
167
177
|
}
|
|
168
178
|
} catch (error) {
|